﻿@model ORM.Business.Models.Entities.Question

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Question</legend>

    <div class="display-label">Title</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">TitleUrl</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TitleUrl)
    </div>

    <div class="display-label">ContentText</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ContentText)
    </div>

    <div class="display-label">Views</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Views)
    </div>

    <div class="display-label">AnswerTimes</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AnswerTimes)
    </div>

    <div class="display-label">Reports</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Reports)
    </div>

    <div class="display-label">PostedBy</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostedBy.Username)
    </div>

    <div class="display-label">PostedDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostedDate)
    </div>

    <div class="display-label">UpdatedBy</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UpdatedBy.Username)
    </div>

    <div class="display-label">LastUpdate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastUpdate)
    </div>

    <div class="display-label">IsDeleted</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsDeleted)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
